package com.lynx.core.type;

import org.apache.commons.lang.StringUtils;
/**
 * 
 * @author lxp
 *
 */
public enum Encoding implements IEnumCode {

	gbk("gbk"), gb2312("gb2312"), utf_8("utf-8"), iso_8859_1("iso-8859-1"), ;
	private String code;

	private Encoding(String code) {
		this.code = code;
	}

	public boolean equals(String code) {
		if (StringUtils.equals(code, code)) {
			return true;
		}
		return false;
	}

	public String getCode() {
		return code;
	}

}
